]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
js: Rely on default scroll policy where appropriate
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 15 Nov 2023 13:54:18 +0000 (14:54 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sat, 18 Nov 2023 18:00:43 +0000 (18:00 +0000)
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3020>

js/gdm/authList.js
js/gdm/loginDialog.js
js/ui/calendar.js
js/ui/components/telepathyClient.js
js/ui/dateMenu.js
js/ui/dialog.js
js/ui/lookingGlass.js
js/ui/popupMenu.js
js/ui/search.js
js/ui/unlockDialog.js

index 7f860a7816ab6f12598b2f0f7b6e13327ee330db..2d1254145a02fa54ea63ace43b0bcaff1a492055 100644 (file)
@@ -92,7 +92,6 @@ export const AuthList = GObject.registerClass({
 
         this._scrollView = new St.ScrollView({
             style_class: 'login-dialog-auth-list-view',
-            hscrollbar_policy: St.PolicyType.NEVER,
             child: this._box,
         });
         this.add_child(this._scrollView);
index 8644bf3d59d8ad9492791e60cc0a2fb63b4ad81d..3be7f42ec0cacaf5118a3ee230957869777efa40 100644 (file)
@@ -168,7 +168,6 @@ const UserList = GObject.registerClass({
             style_class: 'login-dialog-user-list-view',
             x_expand: true,
             y_expand: true,
-            hscrollbar_policy: St.PolicyType.NEVER,
         });
 
         this._box = new St.BoxLayout({
@@ -490,7 +489,6 @@ export const LoginDialog = GObject.registerClass({
         this._bannerView = new St.ScrollView({
             style_class: 'login-dialog-banner-view',
             opacity: 0,
-            hscrollbar_policy: St.PolicyType.NEVER,
             child: bannerBox,
         });
         this.add_child(this._bannerView);
index ebf8dda5545ab979164216c262dc0fc0e7739509..64663c5aff6df4f59e09a710dafd8c2c4861cdfc 100644 (file)
@@ -954,7 +954,6 @@ class CalendarMessageList extends St.Widget {
             style_class: 'vfade',
             overlay_scrollbars: true,
             x_expand: true, y_expand: true,
-            hscrollbar_policy: St.PolicyType.NEVER,
         });
         box.add_child(this._scrollView);
 
index 4a66d915164f2a21e4f7436cc27a51a51b27afe2..778c8e7e03929ab3b5e34eb4a49d2551824dcd3e 100644 (file)
@@ -876,8 +876,6 @@ class ChatNotificationBanner extends MessageTray.NotificationBanner {
         });
         this._scrollArea = new St.ScrollView({
             style_class: 'chat-scrollview vfade',
-            vscrollbar_policy: St.PolicyType.AUTOMATIC,
-            hscrollbar_policy: St.PolicyType.NEVER,
             visible: this.expanded,
             child: this._contentArea,
         });
index 0ffd73c76e76366e49802141287b86a3d9f5453d..1d6d22685ac0bb7b64417538fb3f5a775a5e4bf4 100644 (file)
@@ -929,7 +929,6 @@ class DateMenuButton extends PanelMenu.Button {
             style_class: 'datemenu-displays-section vfade',
             x_expand: true,
             overlay_scrollbars: true,
-            hscrollbar_policy: St.PolicyType.NEVER,
             vscrollbar_policy: St.PolicyType.EXTERNAL,
             child: displaysBox,
         });
index f0dc021ce5b68911069eabf71d4d81dd4e27e367..bb008420358c6adbdf60414619aae092add3e27b 100644 (file)
@@ -266,7 +266,6 @@ export const ListSection = GObject.registerClass({
 
         this._listScrollView = new St.ScrollView({
             style_class: 'dialog-list-scrollview',
-            hscrollbar_policy: St.PolicyType.NEVER,
             child: this.list,
         });
 
index aa422473f7d9aea9b93a1929a9e9a6a79a4773d3..7414a3058f7cfc646b4918434af5c85dcd34b4e5 100644 (file)
@@ -164,7 +164,6 @@ const Notebook = GObject.registerClass({
 
         const scrollview = new St.ScrollView({
             child,
-            hscrollbar_policy: St.PolicyType.NEVER,
             y_expand: true,
         });
 
@@ -390,7 +389,6 @@ class ObjInspector extends St.ScrollView {
     _init(lookingGlass) {
         super._init({
             pivot_point: new Graphene.Point({x: 0.5, y: 0.5}),
-            hscrollbar_policy: St.PolicyType.NEVER,
         });
 
         this._obj = null;
index 737188c136ad416ca0dbcdb97b02ec7c0a928cf7..2977d3d61d07d0824ff3542a623a8ff9f6e66cc9 100644 (file)
@@ -1014,7 +1014,6 @@ export class PopupSubMenu extends PopupMenuBase {
         // effect if a CSS max-height is set on the top menu.
         this.actor = new St.ScrollView({
             style_class: 'popup-sub-menu',
-            hscrollbar_policy: St.PolicyType.NEVER,
             vscrollbar_policy: St.PolicyType.NEVER,
             child: this.box,
         });
index 63b034d3c22b3e8a7cda8d962d7c5edc80a0da6c..b90ab33acb90edabbec9918b1e33ec35dd8f7490 100644 (file)
@@ -573,7 +573,6 @@ export const SearchResultsView = GObject.registerClass({
             style_class: 'search-display vfade',
             x_expand: true,
             y_expand: true,
-            hscrollbar_policy: St.PolicyType.NEVER,
             child: this._content,
         });
 
index 94da3270dcadcaa85709e16083d9ebf0b6000567..15ed61a5620642ff7d934aef5675d421a54231a8 100644 (file)
@@ -49,7 +49,6 @@ const NotificationsBox = GObject.registerClass({
         });
 
         this._scrollView = new St.ScrollView({
-            hscrollbar_policy: St.PolicyType.NEVER,
             child: this._notificationBox,
         });
         this.add_child(this._scrollView);